FROM debian:bookworm-slim

# 明确赋予可执行权限
ADD ./_output/goctl-swagger-xt /usr/local/bin/
ADD ./_output/goctl /usr/local/bin/
RUN chmod +x /usr/local/bin/goctl /usr/local/bin/goctl-swagger-xt  # 关键修复